<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<title>条件渲染</title>
		<!-- https://v2.cn.vuejs.org/v2/guide/#Vue-js-%E6%98%AF%E4%BB%80%E4%B9%88(官网链接) -->
	</head>
	<body>
		<div id="app">
		<h1 v-if="awesome">Vue is awesome!</h1>
        <h1 v-else>Oh no 😢</h1>
		</div>
		<script>
		var app = new Vue({
		  el: '#app',
		  data: {
		    awesome: true
		  }
		})
			
		</script>
	</body>
</html>